package com.it.domain;

public class Teacher extends Peoper{
    public Teacher() {
    }

    public Teacher(String name, int age) {
        super(name, age);
    }

    public void study(){
        System.out.println("姓名"+ super.getName()+"的老师，年龄"+ super.getAge()+"正在讲知识");

    }
}
